from ultralytics import YOLOv10

model = YOLOv10(r"D:\24926\Desktop\MyProject\thesis\yolov10-main\runs\train\cloud_gpu\ai_studio\exp2\weights\best.pt")
model.predict(source=r"D:\24926\Desktop\MyProject\thesis\yolov10-main\dataset\images\test", imgsz=640, conf=0.03, save=True)
# result = model.val(data=r"D:\24926\Desktop\MyProject\thesis\yolov10-main\dataset\data.yaml", imgsz=640, conf=0.03)
# print(result)
